package tech.aistar.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import tech.aistar.util.IdWorker;

/**
 * @author success
 * @version 1.0
 * @description:本类用来演示:配置类
 * @date 2019/9/28 0028
 */
@Configuration
//@ImportResource(locations = "classpath:spring-beans.xml")
public class AppBeanConfig {

    //替代spring-beans.xml - 初始化bean - spring或者springmvc - 零注解的配置方式
    @Bean
    public IdWorker idWorker(){

        return new IdWorker();
    }
}
